import request from '@/utils/request';

export const addTask = (data) => {
  return request({
    url: '/work/userVip/addTaskBatch',
    method: 'post',
    data,
  });
};

export const getTaskPage = (data) => {
  return request({
    url: '/work/userVip/listTask',
    method: 'post',
    data,
  });
};

export const getTaskLogPage = (data) => {
  return request({
    url: '/work/userVip/listTaskLog',
    method: 'post',
    data,
  });
};

export const deleteTask = (data) => {
  return request({
    url: '/work/userVip/deleteTask',
    method: 'post',
    data,
  });
};

export const promptPolish = (data) => {
  return request({
    url: '/work/userVip/polish',
    method: 'post',
    data,
  });
};

export const queryGptConfig = () => {
  return request({
    url: '/work/userVip/queryGptConfig',
    method: 'post',
    data: {},
  });
};
